<script type="text/javascript" src="/scripts/apps/mc/ordersheet/list.js"></script>
<form id="Form_Ordersheet" name="Form_Ordersheet" action="/exec.php?action=mc_transaction_seller_ordersheetlist" method="post" enctype="multipart/form-data">
    <table width="700" border="0" align="center" cellpadding="0" cellspacing="0" class="regBL">
    <tr>
        <td align="left" ><h2>订单管理</h2></td>
    </tr>
    </table>
    <br />
    <!--[foreach name="List_Ordersheet" item="Row" from="$Ordersheets"]-->
    <table width="700" border="0" align="center" cellpadding="2" cellspacing="0" style="border: solid #BEBEBE 1px; margin-bottom:10px;">
    <tr>
        <td width="25" height="25" align="center" valign="middle" bgcolor="#DEDEDE" style="border-bottom:solid #BEBEBE 1px;">
            <input type="checkbox" name="ID[]" id="ID" value="<!--[$Row.ID]-->" />
        </td>
        <td width="672" valign="middle" bgcolor="#DEDEDE" style="border-bottom:solid #BEBEBE 1px;">
        	订单编号：<!--[$Row.OrderNumber]-->&nbsp;&nbsp;&nbsp;下单时间：<!--[$Row.Datetime]-->&nbsp;&nbsp;&nbsp;<!--[$Row.CompanyName_Buyer]-->
		</td>
    </tr>	
    <tr>
        <td colspan="2" align="right" bgcolor="#EEEEEE">
        	<table width="695" border="0" align="right" cellpadding="0" cellspacing="0">
            <tr>
                <td width="528">
                	<!--[section name=Supply loop=$Row.Supplies]-->   
                	<table width="528" border="0" cellpadding="1" cellspacing="0">
                    <tr>
                        <td width="84" height="95" align="center" valign="middle"><a href="exec.php?action=mc_transaction_seller_ordersheetsupply&id=<!--[$Row.Supplies[Supply].ID]-->" target="_blank"><img src="<!--[$Row.Supplies[Supply].Thumbnail]-->" width="80" height="80" /></a></td>
                        <td width="177" align="left" valign="top">
                        	<table width="165" border="0" align="center" cellpadding="0" cellspacing="0">
                            <tr>
                            	<td height="2"></td>
                            </tr>
                            <tr>
                            	<td>
                                	<a href="exec.php?action=mc_transaction_seller_ordersheetsupply&id=<!--[$Row.Supplies[Supply].ID]-->" target="_blank">
                            			<!--[$Row.Supplies[Supply].Title]-->
                            		</a>
                            	</td>
                            </tr>
                            <tr>
                                <td>分类：
                                    <span id="ClassID_Text"><!--[$Row.Supplies[Supply].ClassID]--></span>
                                    -
                                    <span id="SubclassID_Text"><!--[$Row.Supplies[Supply].SubclassID]--></span>
                                    <input type="hidden" id="ClassID_Value" name="ClassID_Value" />
                                    <input type="hidden" id="SubclassID_Value" name="SubclassID_Value" />
                                </td>
                            </tr>
                        	</table>
                        </td>
                        <td width="80" align="center" style="border-left:solid #BEBEBE 1px;border-right:solid #BEBEBE 1px;">&yen;
                            <!--[$Row.Supplies[Supply].Price|string_format:"%.2f"]--></td>
                        <td width="71" align="center" style="border-right:solid #BEBEBE 1px;"><!--[$Row.Supplies[Supply].Amount]-->
                            /
                            <!--[$Row.Supplies[Supply].Unit]--></td>
                        <td width="106" align="center" style="border-right:solid #BEBEBE 1px;">&yen;
                            <!--[math equation="x*y+z" x=$Row.Supplies[Supply].Price y=$Row.Supplies[Supply].Amount z=$Row.Supplies[Supply].Freight format="%.2f"]-->
                            <!--[if $Row.Supplies[Supply].Freight_Payer eq "BUYER"]-->
                            	<br/><span style="color:#999;">(买家承担：<!--[$Row.Supplies[Supply].Freight]-->)</span>
                            <!--[else]-->
                            	<br/><span style="color:#999;">(卖家承担)</span>
                            <!--[/if]-->
						</td>
                        </tr>
                		</table>
                        <!--[/section]-->
                </td>
                <td width="102" align="center" valign="middle" style="border-right:solid #BEBEBE 1px;" title="<!--[$Row.Status]-->">                                
                	<!--[if $Row.Status_Description_Seller neq ""]-->
                    	<!--[$Row.Status_Description_Seller]--><br/>
                    <!--[/if]-->
                	<!--[if $Row.Status eq "SERVICE::000" or $Row.Status eq "SERVICE::001" or $Row.Status eq "SERVICE::002" or $Row.Status eq "SERVICE::003" or $Row.Status eq "SERVICE::004" or $Row.Status eq "SERVICE::005" or $Row.Status eq "SERVICE::999" or $Row.Status eq "SERVICE::998" or $Row.Status eq "SERVICE::997"]-->
                    	<a href="/exec.php?action=mc_transaction_seller_ordersheet&do=detail&id=<!--[$Row.ID]-->" target="_self">订单详情</a><br />  
					<!--[else]-->
                    	状态异常                                                                                                                                                                    
                    <!--[/if]-->
                </td>
                <td width="65" align="center" valign="middle" style="border-right:solid #BEBEBE 1px;">
                    <!--[if $Row.Status eq "SERVICE::999" or $Row.Status eq "SERVICE::998" or $Row.Status eq "SERVICE::997"]-->
	                    <a href="/exec.php?action=mc_transaction_seller_ordersheet&do=delete&id=<!--[$Row.ID]-->" target="_self">删除</a>                   
                    <!--[else]-->
                    	<a style="color:#C0C0C0">删除</a>
					<!--[/if]-->                    
                    
                    <!--[if $Row.Status eq "SERVICE::000"]-->
                    	<br/>
                        <a href="/exec.php?action=mc_transaction_seller_ordersheet&id=<!--[$Row.ID]-->" target="_self">确认订单</a><br />
                        <a href="/exec.php?action=mc_transaction_seller_ordersheet_close&ordernumber=<!--[$Row.OrderNumber]-->" target="_self">关闭订单</a>                        
                    <!--[elseif $Row.Status eq "SERVICE::002"]-->
	                    <br />
                    	<a href="/exec.php?action=mc_transaction_seller_ordersheet&do=detail&id=<!--[$Row.ID]-->" target="_self">确认到账</a>  
                    <!--[elseif $Row.Status eq "SERVICE::003"]-->  
                    	<br />                      
                        <a href="/exec.php?action=mc_transaction_seller_ordersheet&id=<!--[$Row.ID]-->" target="_self">发货</a>					                        
					<!--[/if]-->                       
                </td>
                </tr>
        	</table>            
        </td>
    </tr>
    </table>
    <!--[/foreach]-->    
    <table width="700" border="0" align="center" cellpadding="3" cellspacing="0">
    <tr>
        <td align="center" bgcolor="#DEDEDE"><!--[$PageMenu]--></td>
    </tr>
    </table>
    <br />
</form>